#!/bin/sh
echo "killing existing java process..."
if [[ `ps -ef | grep java | grep -v grep | awk '{print $2}'` != "" ]]; then
	ps -ef | grep java | grep -v grep | awk '{print $2}' | xargs kill -9
fi

cd /home/ec2-user/tools/crawler
java -jar crawler.jar &
